package com.zhanglifan.service.impl;

import com.zhanglifan.dao.SqlDao;
import com.zhanglifan.service.SqlService;

import java.util.List;

/**
 * Information
 * Author: ZhangLifan
 * Time: 2017/10/10 20:38
 * Description: SqlServiceImpl
 */
public class SqlServiceImpl implements SqlService {

    private SqlDao sqlDao;

    public void setSqlDao(SqlDao sqlDao) {
        this.sqlDao = sqlDao;
    }

    @Override
    public String getSingleValue(String sql) {
        return sqlDao.getSingleValue(sql);
    }

    @Override
    public String getSingleValue(String sql, Object[] objs) {
        return sqlDao.getSingleValue(sql,objs);
    }

    @Override
    public String[] toArray(String sql) {
        return sqlDao.toArray(sql);
    }

    @Override
    public List executeSQL(String sql) {
        return sqlDao.executeSQL(sql);
    }

    @Override
    public List executeSQL(String sql, Object[] objs) {
        return sqlDao.executeSQL(sql,objs);
    }

    @Override
    public List executeSQLForList(String sql, Object[] objs) {
        return sqlDao.executeSQLForList(sql,objs);
    }

    @Override
    public int updateSQL(String sql) {
        return sqlDao.updateSQL(sql);
    }

    @Override
    public int updateSQL(String sql, Object[] objs) {
        return sqlDao.updateSQL(sql,objs);
    }

    @Override
    public int[] batchSQL(String[] sql) {
        return sqlDao.batchSQL(sql);
    }
}
